package club.hicode.daydayup.rpc.demo.client;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * 接口代理
 * @author Liu Chunfu
 * @date 2018-08-31 上午11:22
 **/
public class InterfaceProxy implements InvocationHandler {

	/**
	 * 动态代理
	 * @param proxy
	 * @param method
	 * @param args
	 * @return
	 * @throws Throwable
	 */
	@Override
	public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
		System.out.println(method);
		System.out.println(args);
		return null;
	}
}
